<?php declare(strict_types=1);

namespace app\validate;

class User extends Base{

    protected $rule = [
        'account'=>'require|mobile',
        'password'=>'require|min:6',
    ];

    protected $message = [
        'account.require'=> 'account require',
        'account.mobile'=>'account must phone number',
        'password.require'=>'password require',
        'password.min'=>'password must more than 6 character',
    ];

    protected $scene = [
        'login'  =>  ['account','password'],
    ];

}
 
